package com.aistar.service.job.impl;

import com.aistar.mapper.RecruitmentLabelMapper;
import com.aistar.model.entity.RecruitmentLabel;
import com.aistar.service.job.IRecruitmentLabelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class RecruitmentLabelServiceImpl implements IRecruitmentLabelService {
    @Autowired
    private RecruitmentLabelMapper recruitmentLabelMapper;

    @Override
    public List<Integer> getTag(Integer id) {
        return recruitmentLabelMapper.findTagId(id);
    }

    @Override
    public List<RecruitmentLabel> getAll() {
        return recruitmentLabelMapper.findAll();
    }


}
